package org.haq.bae.datamodel;

import java.util.ArrayList;
import java.util.List;

/**
 * User: abilhakim
 * Date: 5/7/12
 * Time: 3:28 AM
 */
public class EntityModel extends AbstractModel {

    private String entityType = "QUERY";
    private String query;
    private List<FieldModel> fieldModels = new ArrayList<FieldModel>();

    public EntityModel(String id, String query) {
        this.id = id;
        this.query = query;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public List<FieldModel> getFieldModels() {
        return fieldModels;
    }

    public String getEntityType() {
        return entityType;
    }

    public void setEntityType(String entityType) {
        this.entityType = entityType;
    }
}
